package vip.mall.modular.orders.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import vip.mall.common.entity.CommonEntity;

/**
 * @author Asus
 * @Date 2025/2/10 15:26
 * @Descripition 订单实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_orders")
public class Orders extends CommonEntity {
    @Schema(description = "订单编号")
    private String orderNumber;
    @Schema(description = "用户ID")
    private String userId;
    @Schema(description = "收件人")
    private String consignee;
    @Schema(description = "收件人地址")
    private String consigneeAddress;
    @Schema(description = "收件人电话")
    private String phone;
    @Schema(description="商品名称")
    private String goodsId;
    @Schema(description = "商品规格")
    private String specifications;
    @Schema(description = "购买数量")
    private int number;
    @Schema(description = "订单总金额")
    private double totalPrice;
    @Schema(description = "订单状态")
    private int orderStatus;
}
